package com.ecfront.pojo;

import java.util.Set;

/**
 * 商品类别
 * 
 * @version 1.0
 * @author zhufeng
 */
public class GoodsSort {

	private int id;// 商品类别ID
	private int goodId;// 商品子类别ID
	private String name;// 商品类别名
	// 此处是多对多关联
	private Set goodsBrands;// 商品类别对应的商品列表
	// 此处是多对一关联
	private Set goods;// 商品的集合

	public GoodsSort() {}
	public GoodsSort(int id) {
		this.id = id;
	}
	public GoodsSort(int id, int goodId, String name, Set goodsBrands,
			Set goods) {
		this.id = id;
		this.goodId = goodId;
		this.name = name;
		this.goodsBrands = goodsBrands;
		this.goods = goods;
	}
	
	public Set getGoods() {
		return goods;
	}

	public void setGoods(Set goods) {
		this.goods = goods;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getGoodId() {
		return goodId;
	}

	public void setGoodId(int goodId) {
		this.goodId = goodId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set getGoodsBrands() {
		return goodsBrands;
	}

	public void setGoodsBrands(Set goodsBrands) {
		this.goodsBrands = goodsBrands;
	}
}
